﻿#pragma once
#include <string>
class seats
{
private:
	int seat_id;
	int train_id;
	std::string seat_no;
	std::string seat_type;
    int status = 0; // 0: 可用, 1: 已占用
public:
	// 构造函数
	seats() = default;
	seats(int seat_id, int train_id, const std::string& seat_no, const std::string& seat_type, int status = 0)
		: seat_id(seat_id), train_id(train_id), seat_no(seat_no), seat_type(seat_type), status(status) {
	}
	// Get方法声明
	int getSeatId() const;
	int getTrainId() const;
	std::string getSeatNo() const;
	std::string getSeatType() const;
    int getStatus() const { return status; }
	// Set方法声明
	void setSeatId(int id);
	void setTrainId(int id);
	void setSeatNo(const std::string& no);
	void setSeatType(const std::string& type);
    void setStatus(int s) { status = s; }


};

